<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

    <title data-i18n="resources.title_tiandituLayer_ll"></title>

    <link rel="stylesheet" href="./css/ol.css" type="text/css" />
    <link rel="stylesheet" href="./css/iclient-ol.min.css" type="text/css" />
    <script type="text/javascript" src="./js/ol-debug.js"></script>
    <script type="text/javascript" src="./js/iclient-ol-es6.min.js"></script>
<!--    <script type="text/javascript" src="./js/.js"></script>-->
<!--    <script type="text/javascript" src="../../dist/ol/include-ol.js"></script>-->
</head>
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
<div id="map" style="width: 100%;height:100%"></div>
<script type="text/javascript">
    var map = new ol.Map({
        target: 'map',
        controls: ol.control.defaults({attributionOptions: {collapsed: false}})
            .extend([new ol.supermap.control.Logo()]),

        view: new ol.View({
            center: [116.271966, 39.991664],
            zoom: 15,
            projection: "EPSG:4326",
            resolutions:ol.source.Tianditu.default4326TileGrid.resolutions,
            multiWorld: false
        }),

        layers: [new ol.layer.Tile({
            source: new ol.source.Tianditu({
                layerType: 'vec',
                key: "1d109683f4d84198e37a38c442d68311",
                projection: "EPSG:4326"
            })
        }), new ol.layer.Tile({
            source: new ol.source.Tianditu({
                layerType: 'vec',
                key: "1d109683f4d84198e37a38c442d68311",
                isLabel: true,
                projection: "EPSG:4326"
            })
        })]
    });
</script>
</body>
<html>